﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace COFE.Core.Profile
{
    /// <summary>
    /// Create a hash or encode a password so it can be stored with less chance of getting stolen.
    /// </summary>
    public interface IPasswordEncoder
    {
        /// <summary>
        /// Encode a password into hash or encode.
        /// </summary>
        /// <param name="password"></param>
        /// <returns></returns>
        string Encode(string password);

        /// <summary>
        /// Decode a password, this is not necessary to be implemented.
        /// </summary>
        /// <param name="encodedPassword"></param>
        /// <returns></returns>
        string Decode(string encodedPassword);
    }
}
